﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Medianamik.Core
{
    public class ManyToManyRelationNode : NodeWrapper
    {
        public ManyToManyRelationNode() { }


        public NodeProperty GetLeftNodeProperty(ManyToManyRelation pRelation)
        {
            return DefaultInstance.Properties[pRelation.LeftRelation.ForeignPropertyID];
        }
        public NodeProperty GetRightNodeProperty(ManyToManyRelation pRelation)
        {
            return DefaultInstance.Properties[pRelation.RightRelation.ForeignPropertyID];
        }


        #region Overrides

        public override bool CanHaveChildNodes
        {
            get
            {
                return false;
            }
        }

        public override CultureInfo DefaultCulture
        {
            get
            {
                return CultureInfo.InvariantCulture;
            }
            set
            {
                ;
            }
        }

        #endregion



    }
}
